package is1;

import java.util.ArrayList;
import java.util.HashMap;

public class LectorAtributos
{
	static ArrayList<Atributo> leer (HashMap<String, String> atributos)
	{
		ArrayList<Atributo> ret = new ArrayList<Atributo>();
		
		for (String s : atributos.keySet())
		{
			if (s.equals("tarjetaFid"))
			{
				if (atributos.get(s).equals("true"))
				{
					ret.add(new AtributoTarjetaFidelidad());
				}
			}
			else if (s.equals("empleado"))
			{
				if (atributos.get(s).equals("true"))
				{
					ret.add(new AtributoEmpleado());
				}
			}
		}
		
		
		return ret;
	}
}
